/* 
 * File:   IntArray.h
 * Author: chris
 *
 * Created on February 5, 2009, 6:55 PM
 */

#ifndef _INTARRAY_H
#define	_INTARRAY_H


class IntArray {
public:
    /** Changes one of the int's in the m_buffer.
     * If arrayIndex=0, the first 4 bytes of the m_buffer are changed to
     *      the binary value in the pointer.
     * If arrayIndex=1, the second 4 bytes are changed, etc.
     *
     * @param intValue gives the pointer value
     * @param arrayIndex gives the location in the m_buffer to change
     * @param buffer to use to change value
     */
    static void SetInt(unsigned char *buffer, int intValue, int arrayIndex);

    /** Retrieves one of the int's in the m_buffer
     * @param arrayIndex gives the relative 4 byte location to access. See SetInt.
     * @param buffer to use for obtaining value
     */
    static int GetInt(unsigned char *buffer, int arrayIndex);
};

#endif	/* _INTARRAY_H */

